import time


def metric(fn):
    def print_time(*args, **kwargs):
        start_time = time.time()
        time.sleep(0.1)
        normalize_txt = fn(*args, **kwargs)
        end_time = time.time()
        print('耗时：{:.4f}s'.format(end_time - start_time))
        return normalize_txt

    print('开始')
    return print_time


L1 = ['MIKE', 'Adidas', ' coffee ']


@metric
def normalize(name):
    return name.title()


print(list(map(normalize, L1)))
